import React, { Component } from 'react';
// 导入loading
import { Spin } from 'antd';
// 导入样式文件
import '@/assets/css/loading.css'

class Loading extends Component {
    // 设置默认的props属性值
    static defaultProps = {
        spinning:true,
        tip:'加载中...'
    }

    render() {
        return (
            <div className='loadingBox'>
               <Spin spinning={this.props.spinning} tip={this.props.tip} size='large'/>
            </div>
        );
    }
}


export default Loading;
